﻿html, body, button, .popover {
    font-family: Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif;
}

body, .form-control {
    font-size: 0.875rem;
}

a, a:hover {
    text-decoration: none;
}

a, .btn-link {
    color: #0366d6;
}

header {
    background-color: #4a3275;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.05), inset 0 -1px 0 rgba(0,0,0,.1);
    font-size: 1rem;
}

    header.navbar {
        padding: 5px 16px;
        font-size: 1rem;
    }

    header .nav-link img {
        height: 24px;
        width: auto;
    }

.header-img {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 0;
}

    .header-img img {
        width: 40px;
        height: auto;
        border-radius: 6px;
        border: solid 1px rgba(255, 255, 255, 0.5);
        margin-right: 1rem;
    }

.btn-bd-download {
    font-weight: 600;
    color: #ffe484;
    border-color: #ffe484;
}

    .btn-bd-download:active, .btn-bd-download:hover {
        color: #2a2730;
        background-color: #ffe484;
        border-color: #ffe484;
    }

section {
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

        .main .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.sidebar .top-row {
    background-color: rgb(60, 40, 97);
}

.sidebar .navbar-brand {
    font-size: 1.1rem;
}

.sidebar .nav-item {
    font-size: 0.875rem;
    padding-left: 6px;
}

    .sidebar .nav-item a {
        color: #444;
        border-radius: 4px;
        display: flex;
        align-items: center;
        padding: .25rem 1.5rem;
        font-weight: 400;
    }

.sidebar a.active, .sidebar a:hover {
    background-color: rgba(255,255,255,0.25);
    color: #333;
}

.sidebar .nav-link.active {
    color: #007bff;
}

.sidebar .nav-link span:first-child {
    width: 70px;
}

.sidebar .top-item {
    font-size: 1rem;
}

    .sidebar .top-item:first-child {
        padding-top: 0.5rem;
    }

    .sidebar .top-item:last-child {
        padding-bottom: 1rem;
    }

    .sidebar .top-item .nav {
        margin-top: 0.25rem;
    }

.sidebar .top-link {
    display: block;
    padding: .25rem 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
    color: rgba(0,0,0,.65);
}

.content {
    color: #495057;
}

    .content h2, .content h3, .content h4 {
        font-weight: 400;
        color: #1f2f3d;
    }

        .content h3:not(:first-child) {
            margin-top: 2rem;
        }

    .content h4 {
        margin-top: 1.5rem;
        font-size: 1.2rem;
    }

    .content h5 {
        font-size: 1rem;
        line-height: 1.5;
    }

    .content .alert:last-child {
        margin-bottom: 0;
    }

    .content .card {
        transition: all .3s linear;
        /* width: 320px; */
    }

        .content .card .row, .content .card .form-row {
            flex: 1 1 auto;
        }

        .content .card:hover {
            box-shadow: 0 0 8px 0 rgba(232,237,250,.6), 0 2px 4px 0 rgba(232,237,250,.5);
        }

    .content .card-footer {
        background-color: transparent;
    }

        .content .card-footer .card-footer-control {
            text-align: center;
            color: #d3dce6;
            display: block;
        }

            .content .card-footer .card-footer-control .fa {
                transition: .3s linear;
            }

            .content .card-footer .card-footer-control.show .fa {
                transform: rotate(180deg);
            }

    .content .card:hover .card-footer .card-footer-control .fa {
        margin-left: -1.5rem;
        margin-left: -72px;
    }

    .content .card:hover .card-footer .card-footer-control span {
        opacity: 1;
        margin-left: 1rem;
    }

    .content .card-footer .card-footer-control span {
        opacity: 0;
        margin-left: 1.5rem;
        position: absolute;
        transition: opacity, margin-left .3s linear;
    }

    .content .card-footer .card-footer-control:hover {
        color: #409eff;
    }

    .content .card-footer pre {
        color: #e83e8c;
        margin-bottom: 0;
    }

    .content .card-footer .card-footer-code {
        background-color: #fafafa;
        margin: -12px -20px 12px -20px;
        padding: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    }

    .content .card-body .form-inline {
        margin-bottom: -1rem;
    }

    .content .code-label {
        font-weight: 500;
        color: #333;
        margin-bottom: 2px;
    }

    .content p {
        line-height: 2;
    }

        .content code.highlight, .content p code, .content li code {
            display: inline-block;
            padding: 0px 8px;
            background-color: #e9ecef;
            margin: 0;
            border-radius: 4px;
            line-height: 20px;
        }

    .content .git img {
        height: 44px;
        width: auto;
        display: block;
    }

    .content .git .git-fork {
        display: flex;
        align-items: center;
        padding: 0 10px;
    }

    .content .git a {
        border: solid 1px #ddd;
        display: block;
        padding: 6px 10px;
        border-radius: 6px;
    }

    .content .git .git-fork img {
        height: 56px;
    }

    .content .git .git-fork span {
        font-size: 1.8rem;
        color: #1c3949;
        margin-left: 38px;
    }

    .content .sidebar-content ul li:not(:last-child) {
        padding-bottom: 0.5rem;
    }

.table-demo {
    border-collapse: collapse;
    width: 100%;
    background-color: #fff;
    font-size: 14px;
    margin-bottom: 45px;
    line-height: 1.5em;
}

    .table-demo th {
        text-align: left;
        white-space: nowrap;
        color: #495057;
        font-weight: 400;
        border-bottom: 1px solid #dcdfe6;
        max-width: 250px;
    }

    .table-demo td {
        color: #606266;
    }

    .table-demo td {
        border-bottom: 1px solid #dcdfe6;
        max-width: 250px;
    }

        .table-demo td:first-child,
        .table-demo th:first-child {
            padding-left: 10px;
        }

.table-attr {
    margin-top: 2rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.validation-message {
    color: red;
}

.badge-widget {
    display: inline-block;
    border: solid 1px #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    position: relative;
    transition: all .25s linear;
    cursor: pointer;
}

    .badge-widget:hover {
        box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(40, 167, 69, 0.5);
        border-color: #28a745 !important;
    }

    .badge-widget .badge {
        position: absolute;
        top: -6px;
        right: -6px;
        opacity: 0.8;
    }

.card-log {
    overflow: hidden auto;
    border: solid 1px #ddd;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    background-color: #174482;
    color: #fff;
}

    .card-log .log-item:not(:last-child) {
        margin-bottom: 0.5rem;
    }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.popover-input {
    width: 80px;
}

.pre-code {
    position: relative;
}

    .pre-code .copy-code {
        display: inline-block;
        position: absolute;
        top: 0;
        right: 0;
        padding: 0.5rem 0.75rem;
        background-color: #dcdfe6;
        border-bottom-left-radius: 4px;
        border-top-right-radius: 4px;
        cursor: pointer;
    }

    .pre-code code {
        line-height: 1.8;
        font-size: 0.75rem;
        border: 1px solid #eaeefb;
        border-radius: 4px;
        padding: 10px 16px;
        -webkit-font-smoothing: auto;
        display: block;
    }

    .pre-code .no-highlight code {
        color: #e83e8c;
    }

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 576px) {
    .content .form-inline .form-group {
        margin-bottom: 1rem;
    }

    .popover-input {
        width: 100px;
    }
}

@media (min-width: 768px) {
    .sidebar {
        border-right: solid 1px #ddd;
    }

        .sidebar .sidebar-content {
            overflow: hidden;
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
        }

    .header-img span {
        display: none;
    }

    .btn-bd-download {
        display: inline-block !important;
    }

    .navbar {
        position: sticky;
        top: 0;
        z-index: 1035;
    }

    section {
        flex-direction: row;
        display: flex;
    }

    .sidebar {
        width: 250px;
        height: calc(100vh - 52px);
        position: sticky;
        top: 52px;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}
